package com.daohang361.imqq.ui;
/** 
 * @author naner E-mail:likun3344@163.com 
 * @create time：2011-4-19 下午10:53:02 
 */
import javax.swing.*;
import java.awt.*;
/**
 * @author Hardneedl
 */
class FrameBackgroundDemo extends JFrame {
    private static final Dimension minSize = new Dimension(300, 200);
    private static final Dimension maxSize = new Dimension(1024, 768);
    private static final Dimension preferredSize = new Dimension(600, 400);
    public Dimension getMaximumSize() {return maxSize;}
    public Dimension getMinimumSize() {return minSize;}
    public Dimension getPreferredSize() {return preferredSize;}
    public String getTitle() {return "Frame Title";}

    FrameBackgroundDemo() throws HeadlessException {
        init();
        doLay();
        attachListeners();
    }

    private void init() {

    }

    private void doLay() {
        Container container = getContentPane();
        container.setBackground(new Color(214,238,255));

        pack();
    }

    private void attachListeners() {
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }

    public static void main(String[] args) {new FrameBackgroundDemo().setVisible(true);}
}